﻿@model IEnumerable<e_commerce.Foreground.Models.DeliveryInfo>
@foreach (var item in Model)
{
    if (item.IsDefault)
    {
        <div class="deliver-info ads-this">
            <div class="deliver-head">
                <input type="hidden" name="DeliverId" value="@item.Id" />
                <div>@item.Name</div>
                <div>@item.PhoneNumber</div>
            </div>
            <div class="deliver-address">
                <div>@item.Address</div>
            </div>
        </div>
    }
    else
    {
        <div class="deliver-info">
        <div class="deliver-head">
            <input type="hidden" name="DeliverId" value="@item.Id"/>
            <div>@item.Name</div>
            <div>@item.PhoneNumber</div>
        </div>
        <div class="deliver-address">
            <div>@item.Address</div>
        </div>
    </div>

    }
}